package com.shengzhe.ostudent.service;

import com.shengzhe.ostudent.entity.PageInfo;
import com.shengzhe.ostudent.entity.Role;
import com.shengzhe.ostudent.entity.RoleCondition;
import com.shengzhe.ostudent.entity.RoleTree;

import java.sql.SQLException;
import java.util.List;

public interface RoleService {
    boolean add(Role role) throws SQLException;
    List<Role> list(RoleCondition roleCondition);
    Role findById(long id) throws SQLException;
    PageInfo<Role>displayRolePage(RoleCondition roleCondition);
    RoleTree buildRoleTree(Role role);
    List<Role> findChildren(Role role);

    boolean modify(Role role);
    boolean updateRole(Role role);
}
